<?php
include 'SessionDeal.class.php';
include 'MySQL.class.php';
$host='localhost';
$user='root';
$password='123123';
$database='php2';
$port=3306;
$db=new MySQL($host, $user, $password, $database, $port);
session_set_save_handler(new SessionDeal($db));
session_start();